package com.fastbee.iot.service.impl;

import com.fastbee.common.core.domain.AjaxResult;
import com.fastbee.common.utils.DateUtils;
import com.fastbee.iot.domain.WhhxDeviceMonitor;
import com.fastbee.iot.domain.WhhxDeviceParameter;
import com.fastbee.iot.mapper.MonitorMapper;
import com.fastbee.iot.mapper.ParameterMapper;
import com.fastbee.iot.service.IMonitorService;
import com.fastbee.iot.service.IParameterService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * 产品分类Service业务层处理
 *
 * @author kerwincui
 * @date 2021-12-16
 */
@Service
public class MonitorServiceImpl implements IMonitorService
{
    @Autowired
    private MonitorMapper monitorMapper;

    /**
     * 查询设备参数列表
     *
     * @param whhxDeviceMonitor 设备参数
     * @return 设备参数
     */
    @Override
    public List<WhhxDeviceMonitor> selectDeviceMonitorList(WhhxDeviceMonitor whhxDeviceMonitor)
    {
        return monitorMapper.selectDeviceMonitorList(whhxDeviceMonitor);

    }

    /**
     * 修改设备参数列表
     *
     * @param whhxDeviceMonitor 设备参数
     * @return 结果
     */
    @Override
    public int updateMonitor(WhhxDeviceMonitor whhxDeviceMonitor) {
        return monitorMapper.updateMonitor(whhxDeviceMonitor);
    }
}
